/****************************************************************************************************
 ** @file       config.h
 ** @brief      
 ** @details
 **   
 ** @copyright  S7501
 ** @author     yss93
 ** @date       2021/10/13
 **************************************************************************************************/

#ifndef _CONFIG_H
#define _CONFIG_H

#include "../drivers/LinkPortProtocol.h"
#include "../drivers/TS101LinkPort.h"
#include "../common/types.h"

#define LINK_PORT_0_LEN    1000 * LINK_PORT_FRAME_LEN
#define LINK_PORT_1_LEN    1000 * LINK_PORT_FRAME_LEN
#define LINK_PORT_2_LEN    200 * LINK_PORT_FRAME_LEN
#define LINK_PORT_3_LEN    10 * LINK_PORT_FRAME_LEN

section("data2") PUBLIC UINT32 g_Recv0[LINK_PORT_0_LEN];
section("data2") PUBLIC UINT32 g_Recv1[LINK_PORT_1_LEN];
section("data2") PUBLIC UINT32 g_Recv2[LINK_PORT_2_LEN];
section("data2") PUBLIC UINT32 g_Recv3[LINK_PORT_3_LEN];

section("data2") PUBLIC LinkPortProtocolConfig g_LPPConfig[LINK_PORT_NUM_MAX] = {
        {LINK_PORT_0, &g_Recv0, LPP_STATE_NULL},
        {LINK_PORT_1, &g_Recv1, LPP_STATE_NULL},
        {LINK_PORT_2, &g_Recv2, LPP_STATE_NULL},
        {LINK_PORT_3, &g_Recv3, LPP_STATE_NULL},
};


#endif //_CONFIG_H
